From: Bastien Nocera Date: Mon, 23 Jan 2017 07:32:05 +0000 (+0100) Subject: portalHelper: Set a minimum window size X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~588 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a81f18592aa59522fefffa5cea488588b4a6b722;p=gnome-shell.git portalHelper: Set a minimum window size Even though the window is maximised when created, the window is still resizable. This avoids making the window smaller than usable. If the screen is smaller than the minimum window size, the maximise should make it fullscreen and non-resizable. https://bugzilla.gnome.org/show_bug.cgi?id=735233 --- diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index 367659de3..c7d0433a9 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -81,6 +81,7 @@ const PortalWindow = new Lang.Class({ this.add(this._webView); this._webView.show(); + this.set_size_request(600, 450); this.maximize(); this.present_with_time(timestamp);